package com.weiyuwqj.server.mapper;

import com.weiyuwqj.api.model.BusAccountBank;
import com.weiyuwqj.api.model.vo.BusAccountBankVo;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;
@Repository
public interface BusAccountBankMapper extends Mapper<BusAccountBank> {
    List<BusAccountBankVo> getList(Map<String,Object> param);

    BusAccountBankVo getSingle(Map<String,Object> param);

    //根据用户id查询银行卡信息
    List<BusAccountBankVo> getBankByUserId(Integer userId);

    //判断添加的银行卡是否存在
    Integer getCardExist(String cardNo);

    Integer updateBankStatus(Map map);

    BusAccountBank getOneByCardNo(String cardNo);

    BusAccountBank getOneByUserIdAndStatus(Map map);

    BusAccountBank getOneByUserId(Integer userId);
}